import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import {Observable} from "rxjs/Observable";

/*
  Generated class for the PolicyListProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class PolicyListProvider {

    constructor(public http: HttpClient) {

    }

    getPolicyList(params, loadingStatus): Observable<any> {
        let url = '/policy/v1/policyList?not-loading='+loadingStatus;
        // return this.http.get('/policy/v1/policyList', {params:params});
        return this.http.get(url, {params:params});
    }

}
